// Dump controller for PandaBot.

#ifndef PANDADUMP_H_
#define PANDADUMP_H_
#include "Solenoid.h"
#include "Joystick.h"
#include "Timer.h"

// WHAT (IF ANYTHING) DOES THIS INHERIT FROM?
class PandaDump {
	// Constructor
public:
	PandaDump(UINT32 upChannel, UINT32 downChannel, Joystick* stick, int dumpButton, unsigned m_dumpLength);
	// Destructor
	~PandaDump(void);
	void Teleop();
	void TestDump(bool setUp, bool setDown);
private:
	enum {upOn, upOff, downOn, downOff};
	Joystick* m_stick;
	Solenoid* m_upSolenoid;
	Solenoid* m_downSolenoid;
	int m_dumpButton;
	int m_state;
	double m_dumpTime;
	unsigned m_dumpLength;
	double m_dropTime;
};


#endif
